package com.hxzy.research.service.pageandmanager.impl;

import com.hxzy.research.mapper.TblTeacherMapper;
import com.hxzy.research.pojo.TblTeacher;
import com.hxzy.research.service.pageandmanager.AddTeacherManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AddTeacherManagerImpl implements AddTeacherManager {
    @Autowired private TblTeacherMapper tblTeacherMapper;
    @Override
    public void addTeacher(TblTeacher tblTeacher) throws Exception {
        tblTeacherMapper.addTeacher(tblTeacher);
    }

    @Override
    public void updateTeacher(TblTeacher tblTeacher) throws Exception {
        tblTeacherMapper.updateTeacher(tblTeacher);
    }

    @Override
    public void deleteTeacher(Integer tid) throws Exception {
        tblTeacherMapper.deleteTeacher(tid);
    }

    @Override
    public TblTeacher findTeacherById(Integer tid) throws Exception {
        return tblTeacherMapper.findTeacherById(tid);
    }
}
